package com.zhongge.exception;

/**
 * @ClassName Login
 * @Description TODO 产生异常的类
 * @Author 李明忠
 * @Date 2025/7/14 8:37
 * @Version 1.0
 */
public class Login {
    private String useName;
    private String password;

    public Login(String useName, String password) {
        this.useName = useName;
        this.password = password;
    }
    public void login(String useName, String password) throws PswException{
        if (!this.password.equals(password)) {
            throw new PswException("密码输入错误！！！");
        }
    }
}
